#!/bin/bash

#------------------------------------------------------------------------------
#Filename:      nfs-config.sh
#Version:       1.0
#Date:  	2013/09/04
#Author:        yuanhui.shi
#Email: 	yuanhui.shi@cs2c.com.cn
#Summary:       配置nfs服务器
#Notes: 	验证nfs服务器能否搭建成功
#Copyright:     China Standard Software Co.,Ltd.
#History:
#      		Version 1.0,2013/07/11
#       	-The first one
#------------------------------------------------------------------------------
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

service iptables stop &> /dev/null
service nfs stop &> /dev/null
mkdir /share
chmod -R 777 /share
echo "/share *(rw)" > /etc/exports
service nfs start &> /dev/null

